package com.xgq.drink.service;

import com.xgq.drink.entity.ChatContact;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xgq.drink.entity.R;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xgq
 * @since 2025-05-15
 */
public interface IChatContactService extends IService<ChatContact> {
    R getAllContacts(Long userId);
    R batchDeleteContacts(Long userId, List<Long> targetIds);
    R clearUnreadCount(Long userId, Long targetId);
    R createOrUpdateContact(ChatContact contact);
    R updateCreateTime(Long contactId, LocalDateTime newTime);
}
